package com.bw.bean;

import lombok.Data;
import scala.Int;

@Data
public class OrgSort {
    public String orgId;
    public Integer avgTs;
    public Long edt;



    public String getScore(){
        double hour = avgTs /1000/ 3600.0;
        System.out.println("hour = " + hour);
        if (hour < 0.5){
            return "非常优秀90分";
        }else  if (hour > 0.5 && hour <=1){
            return "优秀85分";
        }else  if (hour > 1 && hour <=1.5){
            return "良好1级75分";
        }else  if (hour > 1.5 && hour <=2){
            return "良好2级70分";
        }else  if (hour > 2 && hour <=2.5){
            return "良好3级";
        }else  if (hour > 2.5 && hour <=3){
            return "良好4级";
        }else  if (hour > 3 && hour <=3.5){
            return "良好5级";
        }else  if (hour > 3.5 && hour <=4){
            return "差";
        }else  if (hour > 4.5 && hour <=5){
            return "差1级";
        }else{
            return "差2级";
        }
    }
}
